<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML>
<html>
<body>
	<script>
		$(function() {
			init_edit_page();
		});
	</script>
	<s:form action="user_edit">
		<s:hidden name="id"></s:hidden>
		<table>
			<tr>
				<td><label for="name">登录名:</label></td>
				<td><s:textfield name="name" cssClass="text"></s:textfield></td>
			</tr>
			<tr>
				<td><label for="department.id">部门：</label></td>
				<td><s:select name="department.id"
						list="#request.departmentList" listKey="id" listValue="name"
						headerKey="0" headerValue="请选择部门" cssClass="text">
					</s:select>
				</td>
			</tr>
			<tr>
				<td><label for="roleIds">职务:</label></td>
				<td><s:checkboxlist name="roleIds" list="#request.roleList"
						listKey="id" listValue="name" value="roles.{id}"></s:checkboxlist></td>
			</tr>
			<tr>
				<td><label for="phone">电话:</label></td>
				<td><s:textfield name="phone" cssClass="text"></s:textfield></td>
			</tr>
			<tr>
				<td><label for="email">邮箱:</label></td>
				<td><s:textfield name="email" cssClass="text"></s:textfield></td>
			</tr>
			<tr>
				<td><label for="sex">性别:</label></td>
				<td><s:radio name="sex" list="#{'true':'男', 'false':'女'}" /></td>
			</tr>
			<tr>
				<td colspan="2"><label for="description">备注:</label></td>
			</tr>
			<tr>
				<td colspan="2"><s:textarea name="description" cols="30"
						cssClass="text"></s:textarea></td>
			</tr>
		</table>
	</s:form>
	<p class="validateTips">按【Ctrl+Enter】快速提交</p>
</body>
</html>
